<template>
    <div>
        <h1>{{$store.getters.reverseMsg}}</h1>
        <h2>{{reverseMsg}}</h2>
        <h2>{{mixinMsg1}}</h2>
        <h2>{{name}}</h2>
        <h2>{{num}}</h2>
        <h2>{{mixinMsg}}</h2>
    </div>
</template>

<script>
import {mapGetters,mapState} from "vuex";
let mapGetData = mapGetters(["reverseMsg","mixinMsg"]);
let mapStateData = mapState(["name","age","num"])
export default {
    mounted(){
        console.log(this);
        
    },
    computed:{
        mixinMsg1:function(){
            return this.$store.getters.mixinMsg("vuex vuex")
        },
        ...mapGetData,
        ...mapStateData
    }
}
</script>

<style>

</style>